﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.CRM.Bussiness;
using System.Data;
using ZX.CRM.Report.CrmReport;

namespace ZX.WebApp.Crm.Report.TuiGuang
{
    public partial class RptTuiguangPrivate : System.Web.UI.Page
    {
        BCrmRptTuiguang Tuiguang = new BCrmRptTuiguang();
        protected void Page_Load(object sender, EventArgs e)
        {

            DoReport();
        }
        private void DoReport()
        {
            try
            {
                 DataSet myDataSet = new DataSet();
                 myDataSet.DataSetName = "DsCrmRptPrivateTuiguang";
                 DataTable CityDataTable =Tuiguang.ReturnTablePrivateCity();
                 DataTable TradeDataTable = Tuiguang.ReturnTablePrivateTrade();
                 DataTable ProductDataTable = Tuiguang.ReturnTablePrivateProduct();
                 DataTable PersonDataTable = Tuiguang.ReturnTablePrivatePerson();
                 CityDataTable.TableName = "DsPrivateCity";
                 TradeDataTable.TableName = "DsPrivateTrade";
                 ProductDataTable.TableName = "DsPrivateProduct";
                 PersonDataTable.TableName = "DsPrivatePerson";
                 myDataSet.Tables.Add(CityDataTable.Copy());
                 myDataSet.Tables.Add(TradeDataTable.Copy());
                 myDataSet.Tables.Add(ProductDataTable.Copy());
                 myDataSet.Tables.Add(PersonDataTable.Copy());
                 RptPrivateTuiguang crm = new RptPrivateTuiguang();
                 crm.DataSource = myDataSet;                
                 RV.Report = crm;
            }
            catch
            {
            }


            //}
        }
    }
}